import api from './index'

// 我的页面
export default {
	// 用户信息
	fetchUserInfo: (params) => api.get('/system/zy/user/getInfo', params),
	// 优惠券数据
	fetchCouponList: (params) => api.get('/system/userCoupon/listAppNetCenter', params),
	queryUserCouponClassifyCount: (params) => api.get('/system/userCoupon/queryUserCouponClassifyCount', params),
	
	// 优惠券详情
	// fetchCouponDetail: (id) => api.get('/system/coupon/' + id),
	fetchCouponDetail: (id) => api.get('/system/userCoupon/applet/' + id),

	// 修改用户信息
	editUserInfo: (params) => api.put('/system/zy/user', params),

	feedback: (params) => api.post('/system/feedback', params),

	noticeList: (params) => api.get('/system/notice/list', params),

	systemnotice: (id) => api.get('/system/notice/' + id),

	//优惠券转赠
	regift: (params) => api.get('/system/userCoupon/regift', params),
}